package org.ezplatform.office.meeting.search.dao;

import org.ezplatform.core.dao.jpa.JpaBaseDao;
import org.ezplatform.office.meeting.info.entity.ApplyRecord;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SearchDao extends JpaBaseDao<ApplyRecord, String> {

    @Modifying
    @Query(value = "delete from  ApplyRecord a where a.id in (?1) and a.status in ('-1') ")
    int deleteApplyRecord(List<String> ids);

}